package com.easygem.business.mapper;

import com.easygem.common.model.business.BgClient;
import com.easygem.common.model.business.BgClientType;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @author 廖思炜
 * @version 1.0
 * @className ClientConcernMapper
 * @Description TODO 客户关怀数据访问接口
 * @date 2025/1/13 19:52
 */
public interface ClientConcernMapper extends BaseMapper<BgClient>,com.easygem.business.mapper.Mapper<BgClient>{
    /**
     * 根据条件分页得到客户关怀界面的信息
     * @return
     */
    List<BgClient> getClientConcerns(BgClient bgClient);

    Long getClientConcerns_COUNT(BgClient bgClient);
    /**
     * 查询所有客户类型并返回
     * @return
     */
    List<BgClientType> getAllClientTypes();

    /**
     * 续签
     * @param bgClient
     * @return
     */
    Integer renew(BgClient bgClient);

    /**
     * 根据账户名得到应用key
     * @param accountName
     * @return
     */
    String getAppIdByName(String accountName);
    /**
     * 根据账户名得到应用秘钥
     * @param accountName
     * @return
     */
    String getAppSecretByName(String accountName);
}
